<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------

/** 角色相关start */
Route::any('saas/role/login', 'saas/passport/login');                                                                   // 登录
Route::any('saas/role/logout', 'saas/passport/logout');                                                                 // 退出
Route::any('saas/role/getAdminInfo', 'saas/passport/getInfo');                                                          // 获取登录信息
Route::any('saas/getConfig', 'saas/passport/getConfig');                                                                // 获取网站登录页信息
/** 角色登录end */

Route::any('saas/image/ueditor', 'saas/upload/ueditor');                                                                // ueditor编辑器配置
Route::any('saas/image/upload', 'saas/upload/uploadImage');                                                             // 图片上传
Route::any('saas/image/getHistoryList', 'saas/upload/getAll');                                                          // 获取历史上传图片列表
Route::any('saas/image/delHistory', 'saas/upload/softDelete');                                                          // 软删除图片
Route::any('saas/image/delete', 'saas/upload/delete');                                                                  // 删除图片
Route::any('saas/file/upload', 'saas/upload/upFile');                                                                   // 文件上传

/** 账户管理 */
Route::any('saas/manager/getInfo', 'saas/manager/getInfo');                                                             // 管理员基本信息
Route::any('saas/manager/getAccountPageList', 'saas/manager/getAccountList');                                           // 账户列表
Route::any('saas/manager/doUpdate', 'saas/manager/doUpdate');                                                           // 更新账户信息
Route::any('saas/manager/doAdd', 'saas/manager/doAdd');                                                                 // 添加账户
Route::any('saas/manager/doModifyPwd', 'saas/manager/doModifyPwd');                                                     // 修改密码
Route::any('saas/manager/doDelete', 'saas/manager/doDelete');                                                           // 删除账户
Route::any('saas/manager/doModifyMobile', 'saas/manager/doModifyMobile');                                               // 修改手机号
Route::any('saas/manager/getAll', 'saas/manager/getAll');                                                               // 所有管理员

/** 设置 */
Route::any('saas/setting/getInfo', 'saas/setting/getSettingInfo');                                                      // 获取设置
Route::any('saas/setting/toSaveInfo', 'saas/setting/toSaveSettingInfo');                                                // 保存设置

/** 商城管理 */
Route::any('saas/mall/getPageList', 'saas/mall/getPageList');                                                           // 商城列表
Route::any('saas/mall/toAdd', 'saas/mall/toAdd');                                                                       // 添加商城
Route::any('saas/mall/getInfo', 'saas/mall/getInfo');                                                                   // 获取商城信息
Route::any('saas/mall/toUpdate', 'saas/mall/toUpdate');                                                                 // 更新商城
Route::any('saas/mall/toRecycle', 'saas/mall/toRecycle');                                                               // 回收商城
Route::any('saas/mall/toDelete', 'saas/mall/toDelete');                                                                 // 删除商城
Route::any('saas/mall/toDisable', 'saas/mall/toDisable');                                                               // 禁用商城
Route::any('saas/mall/toMigrate', 'saas/mall/toMigrate');                                                               // 迁移商城

Route::any('saas/sendCode', 'saas/attach/sendCode');                                                                    // 发送验证码


Route::any('saas/initialize/accountData', 'saas/we/initializeData');                                                    // 自动交付生成数据
Route::any('saas/initialize/login', 'saas/we/toLogin');                                                                 // 登录
Route::any('saas/initialize/modifyTime', 'saas/we/toModifyTime');                                                       // 修改到期时间
Route::any('saas/initialize/update', 'saas/we/updateInfo');                                                       // 修改到期时间

//Route::any('saas/WxApp/toAddVersion', 'saas/wxApp/toAddVersion');                                                       // 添加小程序版本